/* 我的陪玩页面特定样式 */
.my-services-section {
    background: rgba(45, 52, 54, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--light);
    font-size: 1.4rem;
}

.my-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.my-service-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(108, 92, 231, 0.2);
    color: var(--dark);
    position: relative;
}

.my-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.my-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.my-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.my-service-card:hover .my-card-image img {
    transform: scale(1.05);
}

.my-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.my-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.my-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.my-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.my-card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
    margin: 10px 0;
}

.my-card-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.my-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.edit-btn {
    background: var(--warning);
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.delete-btn {
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.edit-btn:hover, .delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-card {
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed rgba(108, 92, 231, 0.3);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--light);
}

#back-to-main {
    position: absolute;
    top: 30px;
    right: 20px;
    padding: 10px 20px;
    font-size: 1rem;
}

/* ===== 编辑模态框样式 - 与添加陪玩模态框一致 ===== */
#edit-service-modal .modal-content {
    background: rgba(45, 52, 54, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 92, 231, 0.5);
    color: #f5f6fa;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 25px;
    max-width: 600px;
}

#edit-service-modal .modal-title {
    color: #a29bfe;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(162, 155, 254, 0.3);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#edit-service-modal .form-group {
    margin-bottom: 20px;
}

#edit-service-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #a29bfe;
}

#edit-service-modal select,
#edit-service-modal input,
#edit-service-modal textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.3);
    background: rgba(255, 255, 255, 0.9); /* 优化背景色 */
    color: #2d3436; /* 优化字体颜色 */
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* 下拉选项样式 */
#edit-service-modal select option {
    background: rgba(255, 255, 255, 0.95); /* 选项背景 */
    color: #2d3436; /* 选项文字 */
}

#edit-service-modal select:focus,
#edit-service-modal input:focus,
#edit-service-modal textarea:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
    outline: none;
}

#edit-service-modal textarea {
    min-height: 120px;
    resize: vertical;
}

#edit-service-modal .file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#edit-service-modal .image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

#edit-service-modal .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#edit-service-modal .audio-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(108, 92, 231, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
}

#edit-service-modal .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(253, 121, 168, 0.8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#edit-service-modal .remove-file:hover {
    background: rgba(253, 121, 168, 1);
    transform: scale(1.1);
}

#edit-service-modal .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

#edit-service-modal .btn {
    flex: 1;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

#edit-service-modal .btn-primary {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

#edit-service-modal .btn-outline {
    background: transparent;
    color: #a29bfe;
    border: 1px solid #a29bfe;
}

#edit-service-modal .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

/* 成功提示样式 */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 184, 148, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

/* 音频播放器样式 */
.voice-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(162, 155, 254, 0.1);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

.voice-info {
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--dark);
}

.voice-info p {
    color: #777;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* 试听按钮样式 */
.play-preview-btn {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.play-preview-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* 音频预览项 */
.audio-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(108, 92, 231, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    justify-content: space-between;
}